package com.tsystems.skilltest.service;

import java.util.List;

import com.tsystems.skilltest.Transaction;
import com.tsystems.skilltest.TransactionDAO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author aesipov
 */
public class GetTransactionServiceImpl implements GetTransactionService
{
    private static final Logger logger = LoggerFactory.getLogger(GetTransactionServiceImpl.class);

    TransactionDAO dao = new TransactionDAO();

    @Override
    public List<Transaction> getTransactions()
    {
        logger.info("Get transactions was called");
        return dao.getAll();
    }
}
